package com.sunchen.asc.service.parameter.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value="全局参数类型对象vo",description="全局参数类型paramType")
public class ParamTypeVo implements Serializable {

    private Long id;

    @ApiModelProperty(value="参数类型")
    @NotEmpty(message = "不能为空")
    private String name;

    @ApiModelProperty(value="类型值")
    @NotEmpty(message = "不能为空")
    private String value;

    @ApiModelProperty(value="状态（1启用，0禁用）")
    @NotNull(message = "不能为空")
    private int status;

    @ApiModelProperty(value="父级id")
    @NotNull(message = "不能为空")
    private Long parentId;

    @ApiModelProperty(value="是否固定参数（1是，0否）")
    @NotNull(message = "不能为空")
    private int fixed;

    public ParamTypeVo() {
    }

    public ParamTypeVo(Long id, String name, String value, int status, Long parentId, int fixed) {
        this.id = id;
        this.name = name;
        this.value = value;
        this.status = status;
        this.parentId = parentId;
        this.fixed = fixed;
    }
}
